﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Security.Cryptography;
using System.Text;

public partial class Web_paymentgatewaytest : System.Web.UI.Page
{
    private string r;
    private string v;
    private string i;
    private string k;
    private string url;

    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {

    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        r = InvoiceNO.Text;
        v = Amount.Text;
        i = "technoBP";
        k = EncryptedID.Text;
        url = r + v + i;

        MD5 md5 = MD5.Create();
        byte[] inputbytes = System.Text.Encoding.ASCII.GetBytes(url);
        byte[] hash = md5.ComputeHash(inputbytes);
        url = BitConverter.ToString(hash).Replace("-", "");
        EncryptedID.Text = url.ToString();
    }
}